Multi-factor authentication (MFA) is a security process that requires users to provide two or more verification factors to gain access to a system, application, or account. This adds an extra layer of protection beyond just using a password.
By requiring more than one verification method, MFA helps reduce the risk of unauthorized access, even if someone has obtained your password. It’s highly recommended for securing sensitive information stored in your notes.
OpenID is a standardized way to let you log into websites using an account from another service, like Google, to verify your identity.
TOTP (Time-Based One-Time Password) is a security feature that generates a unique, temporary code on your device, like a smartphone, which changes every 30 seconds. You use this code, along with your password, to log into your account, making it much harder for anyone else to access them.
MFA can only be set up on a server instance.
In order to setup OpenID, you will need to setup a authentication provider.
This requires a bit of extra setup. Follow these instructions to
setup an OpenID service through google. The Redirect URL of Trilium is
https://<your-trilium-domain>/callback.
oauthBaseUrl, oauthClientId and
oauthClientSecretin the config.ini file
(check Configuration (config.ini or environment variables) for
more information).
TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHBASEURL,
TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTID, TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTSECRET
TRILIUM_OAUTH_BASE_URL,
TRILIUM_OAUTH_CLIENT_ID, TRILIUM_OAUTH_CLIENT_SECRET
oauthBaseUrl should be the link of your
Trilium instance server, for example, https://<your-trilium-domain>.If you don’t already have a running Authentik instance, please follow these instructionsto set one up.
https://<your-trilium-domain>/callback.oauthIssuerBaseUrl → Use the OpenID Configuration Issuer URL
from your application's overview page.oauthIssuerName and oauthIssuerIcon →
Set these to customize the name and icon displayed on the login page. If
omitted, Google’s name and icon will be shown by default.